//defaultUrl = "http://192.168.50.48:8080"  //开发环境
//defaultUrl = "http://127.0.0.1:8080" ; //本机环境
//defaultUrl = "http://47.93.43.192" ; //测试环境

defaultUrl = sessionStorage.getItem('ctx') || ''  //生产环境
imgUrl  = sessionStorage.getItem('fdfsPath') || "http://testfile.anpxd.com:8083/"

// var cuiUrl = "https://bird.ioliu.cn/v1?url=http://erp.anpxd.com"

function GetQueryString(name)
{
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.search.substr(1).match(reg);
     if(r!=null)return  unescape(r[2]); return null;
}

var userId = sessionStorage.getItem('userId') || GetQueryString('userId') || '';
sessionStorage.setItem('userId',userId);
var marketId = sessionStorage.getItem('marketId') || GetQueryString('marketId') || '';
sessionStorage.setItem('marketId',marketId);
var shopId = sessionStorage.getItem('shopId') || GetQueryString('shopId') || '';
sessionStorage.setItem('shopId',shopId);
var userName =  sessionStorage.getItem('userName') || GetQueryString('userName') || '';
sessionStorage.setItem('userName',userName);
var carId =   GetQueryString('carId') || sessionStorage.getItem('carId') || '';
sessionStorage.setItem('carId',carId);


